﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SSSGame.Physics
{
    /// <summary>
    /// Extension de la classe Math qui permet essentiel de travail sur des float (et non des double)
    /// </summary>
    public static class MathExtensions
    {
        public const float PI = 3.1415926f;

        public static float Acos(double d)
        {
            return (float)Math.Acos(d);
        }

        public static float IEEERemainder(double x, double y)
        {
            return (float)Math.IEEERemainder(x, y);
        }

        public static float RadToDegrees(float angle)
        {
            return (float)Math.Abs(180 * angle / PI);
        }
    }
}
